package com.jffccloud.auth.model;

import java.io.Serializable;
import java.util.List;

/**
 * 权限明细
 *
 * @author lz
 */
public class Privilege implements Serializable {

    private static final long serialVersionUID = -6933586906760856166L;
    /**
     * 资源ID
     */
    private String id;

    /**
     * 资源code
     */
    private String code;

    /**
     * 权限对应的公司
     */
    private String orgId;
    /**
     * 父字段ID
     */
    private String parentId;
    /**
     * 资源类型
     */
    private ResType type;

    private String url;

    private String name;

    private String icon;

    private Integer orderBy;

    private List<Privilege> children;


    public List<Privilege> getChildren() {
        return children;
    }

    public void setChildren(List<Privilege> children) {
        this.children = children;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public ResType getType() {
        return type;
    }

    public void setType(ResType type) {
        this.type = type;
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(Integer orderBy) {
        this.orderBy = orderBy;
    }
}
